
import axios from 'axios';

/**
 * 学生信息
 */
export class StaffAttendanceRecordsService {
    // 分页查询列表
    static findStaffAttendanceRecordss (queryParams) {
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/findStaffAttendanceRecordss',
            method: 'POST',
            data: queryParams
        });
    }

    //根据ID查询指定的学生信息
    static findStaffAttendanceRecords (staffAttendanceRecordsId) {
        const query = {
            staffAttendanceRecordsId
        }
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/findStaffAttendanceRecords',
            method: 'POST',
            params: query,
        });
    }

    //根据ID查询指定的学生信息(包含外键名称)
    static findStaffAttendanceRecordsForView (staffAttendanceRecordsId) {
        const query = {
            staffAttendanceRecordsId
        }
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/findStaffAttendanceRecordsForView',
            method: 'POST',
            params: query,
        });
    }

    //根据ID查询指定的学生信息(包含外键名称)
    static findStaffAttendanceRecordsForEdit (staffAttendanceRecordsId) {
        const query = {
            staffAttendanceRecordsId
        }
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/findStaffAttendanceRecordsForEdit',
            method: 'POST',
            params: query,
        });
    }

    //根据ID查询指定的学生信息(只提取ID 和 Name)
    static findStaffAttendanceRecordssWithIdNameById (staffAttendanceRecordsId) {
        const query = {
            staffAttendanceRecordsId
        }
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/findStaffAttendanceRecordssWithIdNameById',
            method: 'POST',
            params: query,
        });
    }

    //根据名称查询学生信息集合(只提取ID 和 Name)
    static findStaffAttendanceRecordssWithIdNameByName (staffAttendanceRecordsName) {
        const query = {
            staffAttendanceRecordsName
        }
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/findStaffAttendanceRecordssWithIdNameByName',
            method: 'POST',
            params: query,
        });
    }

    //新增保存学生信息
    static saveStaffAttendanceRecords (staffAttendanceRecords) {
        const query = {}
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/saveStaffAttendanceRecords',
            method: 'POST',
            params: query,
            data: staffAttendanceRecords
        });
    }

    //修改保存学生信息
    static updateStaffAttendanceRecords (staffAttendanceRecords) {
        const query = {}
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/updateStaffAttendanceRecords',
            method: 'POST',
            params: query,
            data: staffAttendanceRecords
        });
    }

    //根据ID查询指定的学生信息(只提取ID 和 Name)
    static deleteStaffAttendanceRecords (staffAttendanceRecordsId) {
        const query = {
            staffAttendanceRecordsId
        }
        return axios({
            url: '/restaurant/staff/StaffAttendanceRecords/deleteStaffAttendanceRecords',
            method: 'POST',
            params: query,
        });
    }
}
